{php include wl_template('common/header');}
<ul class="nav nav-tabs">
	<li class="active"><a href="javascript:;">商户动态推送</a></li>
</ul>
<div class="app-content">
	<div class="app-form">
		<form class="form-horizontal form" action="" method="post" id="form1">
			<div class="panel panel-default">
				<div class="panel-heading">
					动态推送
				</div>
				<div class="panel-body">
					<div class="form-group">
						<label class="col-sm-2 control-label">总粉丝数</label>
						<div class="col-md-10">
							<input type="text" disabled="disabled"  class="form-control" value="{$fannum}"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">推送内容</label>
						<div class="col-md-10">
							<input type="text" name="content"  class="form-control" value="{$dynamic['content']}"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">头部提示</label>
						<div class="col-md-10">
							<input type="text" name="firsttext"  class="form-control" value="亲，我们又有新的促销活动了，快来看看吧~~"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-sm-2 control-label">尾部提示</label>
						<div class="col-md-10">
							<input type="text" name="remark"  class="form-control" value="如果不想接收该消息提醒，可在“会员中心》我关注的商家”中选择取消哦~"/>
						</div>
					</div>
					<!-- 推送渠道选择 1=微信公众号(wechat)；2=H5（h5）；3=微信小程序(weapp)-->
					{if p('wxapp') && p('wxplatform')}
					<!-- 同时存在公众号和小程序 -->
						<div class="form-group">
							<label class="col-sm-2 control-label">推送渠道</label>
							<div class="col-sm-9">
								<label class="radio-inline">
									<input type="radio" value="1" name="source" checked="">公众号
								</label>
								<label class="radio-inline">
									<input type="radio" value="3" name="source">小程序
								</label>
							</div>
						</div>
					{elseif  p('wxapp') && !p('wxplatform')}
					<!-- 只有小程序 -->
						<div class="form-group hide">
							<label class="col-sm-2 control-label">推送渠道</label>
							<div class="col-sm-9">
								<label class="radio-inline">
									<input type="radio" value="3" name="source" checked="checked">小程序
								</label>
							</div>
						</div>
					{else}
					<!-- 只有公众号 -->
						<div class="form-group hide">
							<label class="col-sm-2 control-label">推送渠道</label>
							<div class="col-sm-9">
								<label class="radio-inline">
									<input type="radio" value="1" name="source" checked="checked">公众号
								</label>
							</div>
						</div>
					{/if}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"></label>
				<div class="col-sm-9">
					<input type="hidden" name="id" id="id" value="{$id}" />
					<input type="submit" name="submit" value="推送" class="btn btn-primary min-width" />
					<input type="hidden" name="token" value="{$_W['token']}" />
				</div>
			</div>
		</form>
	</div>
</div>

{php include wl_template('common/footer');}